home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / all macintosh / basics / qtcreatemovie / read me.txt < prev    next >
Encoding:
Text File  |  2000-06-23  |  2.6 KB  |  57 lines

  1. README
  2.  
  3. CreateMovie sample version 1.0
  4. 6/26/98
  5.  
  6.  
  7.  
  8. 1. ABOUT CREATEMOVIE
  9.  
  10. CreateMovie is a sample application that demonstrates how to use the QuickTime APIs
  11. to create a very simple QuickTime movie with both a video track and a sound track.
  12.  
  13. 2. SPECIFICS
  14.  
  15. CreateMovie is based largely on the sample code included in Inside Macintosh:QuickTime,
  16. starting with pg. 2-45. The user is first asked to specify a location on disk to create the new movie.
  17. A new movie is then created using CreateMovieFile function. Next, video & sound tracks
  18. are added with NewMovieTrack. Media for the sound & video tracks are added with the
  19. NewTrackMedia, BeginMediaEdits, EndMediaEdits sequence of calls. The video track media
  20. is created by drawing a string and color background into an offscreen GWorld. The sound
  21. track media is copied from a standard macintosh 'snd ' resource included in the application file.
  22. Because the code relies on the presence of a 'snd ' resource in the application file,
  23. under Windows 95/NT we must use the QuickTime 3.0 RezWack utility to embed the 'snd ' resource
  24. into the application file (details below).
  25.  
  26. The code contains rather limited error checking. It's up to you to add the appropriate error-handling routines.
  27.  
  28. 3. BUILDING CREATEMOVIE
  29.  
  30. Macintosh
  31.    - Included is a Metrowerks project file. The application will run on any system with QuickTime 2.5
  32.    or better installed.
  33.  
  34. Windows 95/NT
  35.    - Included is a Microsoft Visual C++ 4.2 makefile. The application will run on any system with QuickTime 3.0
  36.    or better installed. Note once the program is built using the Microsoft Visual C++ 4.2 build environment,
  37.    we must embed the 'snd ' resource into the application executable file (xxx.exe) using the QuickTime 3.0
  38.    RezWack utility. Here's how it's done:
  39.  
  40.    1) build the application normally using Microsoft Visual C++ 4.2. The result is an executable file named
  41.    "CreateMovie.exe".
  42.    2) copy the executable file "CreateMovie.exe" to the root level of the project (i.e. the *same* directory
  43.    as the files "MyRezWack.bat" , "RezWack.exe" and "SoundResources").
  44.    3) launch the DOS console application "MyRezWack.bat". This console application will use the QuickTime 3.0
  45.    RezWack utility to embed the 'snd ' resource (read from the "SoundResources" file) into a new executable
  46.    titled "CreateAMovie.exe". Launch the "CreateAMovie.exe" file and you are off and running.
  47.  
  48. 4. USING CREATEMOVIE
  49.  
  50. Launch the application, and at the prompt, specify a location to create the new movie file. A new movie file
  51. is created, and the application quits. Open the movie with any Quicktime movie-savvy application such as MoviePlayer.
  52.  
  53.  
  54. Enjoy,
  55.  
  56. QuickTime Team
  57.